# -*- coding: utf-8 -*-
# @Time    : 2022/1/6 11:17
# @Author  : yuanxi
from basic.UIParent import UIParent
from basic.utils.asserts import asserts
from commen.page.ann.myPage import myPage
from commen.page.ann.wsPage import wsPage


class WsCase(UIParent):



    @classmethod
    def test_WsIndexCheck(self):
        '''数字证照首页校验'''
        # 登录
        myPage.loginByStatu()
        # 数字证照
        myPage.clickWsBtn()
        # list转换为str
        dataText = ''.join(wsPage.getWsList())
        asserts.contain(dataText, "公积金",  "数字证照页面校验")


    # @classmethod
    # def test_WsNumCheck(self):
    #     '''数字证照首页身份证号校验'''
    #     # 登录
    #     myPage.loginByStatu()
    #     # 数字证照
    #     myPage.clickWsBtn()
    #     dataText = wsPage.getWsNum()
    #     print(dataText)
    #     asserts.true(dataText, "数字证照首页身份证号校验")


    # @classmethod
    # def test_CardCheck(self):
    #     '''数字证照电子身份证详情校验'''
    #     # 登录
    #     myPage.loginByStatu()
    #     # 数字证照
    #     myPage.clickWsBtn()
    #     # 电子身份证
    #     wsPage.clickIdCard()
    #     getStatus = wsPage.getCardName()
    #     asserts.true(getStatus, "数字证照电子身份证校验")
    #
    @classmethod
    def test_SecCardCheck(self):
        '''数字证照电子社保卡校验'''
        # 登录
        myPage.loginByStatu()
        # 数字证照
        myPage.clickWsBtn()
        # 电子身份证
        wsPage.clickSecCard()
        getText = wsPage.getSecCard()
        asserts.equal(getText, "领取电子社保卡", "数字证照电子社保卡校验")
    #
    # @classmethod
    # def test_AccCardCheck(self):
    #     '''数字证照公积金校验'''
    #     # 登录
    #     myPage.loginByStatu()
    #     # 数字证照
    #     myPage.clickWsBtn()
    #     # 公积金
    #     wsPage.clickAccCard()
    #     getStatus = wsPage.getAccCard()
    #     asserts.true(getStatus, "数字证照公积金校验")
